package tp.pr4.items;

import tp.pr4.Player;
import tp.pr4.Room;

public class Valuable extends ExpirationItem{
	//Preguntar para que sirve score.
	private int score;
	public Valuable(String id, String description, int score) {
		super(id, description,1);
		this.score=score;
	}
	public boolean use(Player who,Room where)
	{
		if(!canBeUsed())
		{
			return false;
		}
		who.removeItem(getId());
		super.times=super.times-1;
		who.addPoints(this.score);
		return true;	
	}

}
